﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DataAccessLayer.Models.FacilityOverDraft>" %>
<p>
</p>
<h2>
    Create New Facility Over Draft</h2>
<p>
    Facility Over Draft Details
</p>
<% Html.EnableClientValidation(); %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm())
   {%>
<div class="Editor-Main">
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.FacilityName) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.FacilityName) %>&nbsp;<%: Html.ValidationMessageFor(model => model.FacilityName) %>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.RepaymentAmount) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.RepaymentAmount) %>&nbsp;<%: Html.ValidationMessageFor(model => model.RepaymentAmount) %>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.RepaymentPeriod) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.RepaymentPeriod, new { size = 5, maxlength = 3 })%>&nbsp;<%: Html.ValidationMessageFor(model => model.RepaymentPeriod) %>
        <%= Html.DropDownListFor(model => model.RepaymentUnit, (SelectList)ViewData["TnrUnitList"])%>&nbsp;<%: Html.ValidationMessageFor(model => model.RepaymentUnit)%>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.LimitAmount) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.LimitAmount) %>&nbsp;<%: Html.ValidationMessageFor(model => model.LimitAmount) %>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.AdminFee) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.AdminFee) %>&nbsp;<%: Html.ValidationMessageFor(model => model.AdminFee) %>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.CancelFee) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.CancelFee) %>&nbsp;<%: Html.ValidationMessageFor(model => model.CancelFee) %>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.TenorPeriod) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.TenorPeriod, new {size=5, maxlength=3})%>&nbsp;<%: Html.ValidationMessageFor(model => model.TenorPeriod) %>
        <%= Html.DropDownListFor(model => model.TenorUnit, (SelectList)ViewData["TnrUnitList"])%>&nbsp;<%: Html.ValidationMessageFor(model => model.TenorUnit) %>
    </div>
    <div class="Editor-Content">
        <%: Html.LabelFor(model => model.Interest.Percent) %>
    </div>
    <div class="Editor-Content">
        <%: Html.TextBoxFor(model => model.Interest.Percent, new { size = 5, maxlength = 3 })%>&nbsp;<%: Html.ValidationMessageFor(model => model.Interest.Percent) %>
        <%= Html.DropDownListFor(model => model.Interest.Type, (SelectList)ViewData["IntTypeList"])%>&nbsp;<%: Html.ValidationMessageFor(model => model.Interest.Type)%>
    </div>
    <p>
        <input type="submit" value="Create" />
    </p>
</div>
<% } %>